package com.ruiysoft.crm;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;

/**
 * @author fanyl5
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.ruiysoft.crm.mapper")
@ServletComponentScan(basePackages = {"com.ruiysoft.crm.interceptor"})
@EnableScheduling
public class InsuranceCrmApplication {

    public static void main(String[] args) {
        SpringApplication.run(InsuranceCrmApplication.class, args);
        log.info("车险电销系统后台 1.0.0");
    }
}
